import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
//引入Signin
import Signin from '@/components/SignIn/SignIn'
const Home = () => import(/* webpackChunkName: "Home" */ '@/components/Home/Home')
const Role = () => import(/* webpackChunkName: "Role" */ '@/components/Home/System/Role')
const PermissionManage = () => import(/* webpackChunkName: "PermissionManage" */ '@/components/Home/System/PermissionManage')

export default new Router({
  routes: [
//	  { 
//	  	path:'/',
//	  	component: Signin
//	  	
//	  },
	  {
	  	path: '/',
	  	redirect: {name: 'Home'}
	  },
    { 
      path: '/Home',
      name: 'Home',
      component: Home,
      children: 
  		[
  			{
  			path: 'PermissionManage',
  			name:'权限管理',
  			component:PermissionManage
  			},
  			{
  			path: 'Role',
  			name:'角色管理',
  			component:Role
  			}
  			
      ]
    },
    { 
      path: '/Signin',
      name: 'Signin',
      component: Signin
    }
    
    
  ]
})
